const path = require("path");

module.exports = {
  devServer: {
    proxy: {
      "^/api": {
        target: process.env.VUE_APP_BASE_API,
        pathRewrite: {
          "^/api": "",
        },
        changeOrgin: true,
      },
    },
  },

  configureWebpack: {
    resolve: {
      alias: {
        "@": path.resolve(__dirname, "src"),
        components: "@/components",
        assets: "@/assets",
      },
    },
  },

  productionSourceMap: true,
};
